Skip to content

Conversation

z38
Copy link
Contributor

@z38 z38 commented Jul 24, 2017

This patch restores the way paths are stored in Tmdb\HttpClient\Request. The base URL is no longer part of the path and is passed to the HTTP adapter as part of the options bag (fixes #145).

Note: Custom HTTP adapters which do not follow the documented practice will probably break after applying this change.

@yukoff yukoff added this to the v2.1.10 milestone Aug 10, 2017
@yukoff
Copy link
Contributor

yukoff commented Aug 10, 2017

@z38 Thank you for your contribution! I'll take a deeper look on this prior to merge it, also I'd like to check if this should be included in 2.0 as well.

$this->request = $request;

return [
'base_uri' => $request->getOptions()->get('base_url'),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess base_uri here is a typo?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's actually the correct name (I remember re-reading the docs because it looked unusual to me too ;) )

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, just ran into the same confusion ;) Thanks for the follow-up. I'd like to check if this could be covered with test prior merging.

@yukoff yukoff merged commit 01d17a1 into php-tmdb:2.1 Sep 9, 2017
@yukoff
Copy link
Contributor

yukoff commented Sep 9, 2017

Thank you for your contribution, @z38!

@yukoff yukoff mentioned this pull request Sep 9, 2017
@z38 z38 deleted the fix-insecure-requests branch September 17, 2017 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Secure option does nothing
2 participants